package com.gzf.mongodb.utils;

import com.mongodb.BasicDBObject;
import com.mongodb.MongoClient;
import com.mongodb.client.MongoDatabase;

public class MongoDBUtils
{
    public static MongoDatabase getMongoDatabase()
    {
        MongoClient client = new MongoClient("localhost", 27017);

        MongoDatabase database = client.getDatabase("pbdevj");

        return database;
    }
}
